-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch blob ID calculation from data offset to configurable offset #1593
Conversation
# Conflicts: # packages/fuels-programs/src/executable.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…uels-rs into feat/support_for_verified_abi
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
…er.rs Co-authored-by: Ahmed Sagdati <[email protected]>
Co-authored-by: Ahmed Sagdati <[email protected]>
Co-authored-by: Ahmed Sagdati <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Great job, @Salka1988, and great suggestions, @segfault-magnet!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Left some comments
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
packages/fuels-programs/src/assembly/script_and_predicate_loader.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Ahmed Sagdati <[email protected]>
Co-authored-by: Ahmed Sagdati <[email protected]>
Co-authored-by: Ahmed Sagdati <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Release notes
In this release, we:
- Previously deployed blobs are no longer accessible due to changes in blob ID calculation. Redeployment is required.Summary
Updates blob ID calculation to use the configurable offset instead of the data offset, aligning with the updated design for scripts and predicates.
has_configurable_section_offset
function checks bytes 4 and 7 to distinguish binary versions. If byte 4 is 0x74 (JMPF), it considers byte 7: 0x02 means legacy, 0x04 means new, and any other value results in an error.Checklist